﻿namespace Command
{
    /// <summary>
    /// 将一个接受者对象绑定于一个动作，调用接受者相应操作，以实现Execute
    /// </summary>
    class ConcreteCommand : Command
    {
        public ConcreteCommand(Receiver receiver) : base(receiver)
        {
        }

        public override void Execute()
        {
            receiver.Action();
        }
    }
}
